<%@page import="com.gss.common.util.ApplicationConstants"%>
<%@ include file="../common.jsp" %>


<script type="text/javascript">
	$(document).ready(function(){
		var urls = $(".pagelinks a").each(function(index){
			var url = $(this).attr("href");
			$(this).attr("href","javascript:getnextpage('"+url+"');");
			
		});
		
		var urls2 = $(".sortable a").each(function(index){
			var url = $(this).attr("href");
			
			$(this).attr("href","javascript:getnextpage('"+url+"')");
			$(this).attr("onclick","getnextpage('"+url+"');return false;");
		});
		
		$('td > a').attr("target","_blank");
	});
	function getnextpage(url)
	{$("#vaultReports").empty();
		$.get(url,{data:'data'},function(data){
				$("#vaultReports").empty().html(data);
			},"html");
		
	}
</script>

<table style="width: 100%;">
  <tr class="tableMainHeaderColor tableMainHeaderFont" style="width: 100%;" align="left">
	<td>
		<span class="searchResultsCaption">&nbsp;&nbsp;SEARCH RESULTS</span>
	</td>
  </tr>
  <tr align="left">
    <td>
    	<display:table name="${resultList}" export="true" pagesize="10" class="viewDetails" defaultorder="ascending" 
    		requestURI="fetchExpiredDocDataForReports.htm" id="row">
			<div class="makeScrollable">
				<display:caption class="caption captionText"><c:out value="${caption}" /></display:caption>
				<display:column property="docCode" title="Id" style="width:10%; text-align:center;" 
					href="downloadAttachmentFromReports.htm" paramId="docId" paramProperty="docId"></display:column>
				<display:column property="docName" title="Name" style="width:10%; text-align:center;"></display:column>
				<display:column property="dtName" title="Type" style="width:10%; text-align:center;"></display:column>
				<display:column property="dcName" title="Category" style="width:10%; text-align:center;"></display:column>
				<display:column property="dscName" title="Sub-Category" style="width:10%; text-align:center;"></display:column>
				<display:column property="authSign" title="Authorized Signatory" style="width:10%; text-align:center;"></display:column>
				<display:column property="docOwnerName" title="Owner Name" style="width:10%; text-align:center;"></display:column>
				<display:column property="docCompanyName" title="Company Name" style="width:10%; text-align:center;"></display:column>
				<display:column property="ldName" title="BusinessUnit" style="width:10%; text-align:center;"></display:column>
				<display:column property="ddName" title="Department" style="width:10%; text-align:center;"></display:column>
				<display:column property="docValidityEndDate" title="Expired Date" style="width:10%; text-align:center;" 
					format="{0,date,dd-MMM-yy}"></display:column>
				<display:column property="diff" title="Days(since Expiry)" style="width:10%; text-align:center;"></display:column>
				<display:column property="docIssuingAuthority" title="Issuing Authority" style="width:10%; text-align:center;"></display:column>
				<display:column property="docEnteredWith" title="Agreement Entered with" style="width:10%; text-align:center;"></display:column>
				
			</div>
		</display:table>
	</td>
  </tr>
</table>

